package com.mall.user.converter;

import com.mall.user.dal.entitys.Member;
import com.mall.user.dto.UserLoginGetResponse;
import com.mall.user.dto.UserLoginResponse;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 *  cskaoyan
 */
@Mapper(componentModel = "spring")
public interface UserConverterMapper {

//    UserConverterMapper INSTANCE= Mappers.getMapper(UserConverterMapper.class);

    @Mappings({})
    UserLoginResponse converter(Member member);
    @Mappings({
            @Mapping( source = "id",target = "uid")
    })
    UserLoginGetResponse converterGet(Member member);

}
